import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { MarshalException } from "../../Engine/RMI/MarshalException";
type int = number;
//class EStateSet
    
    export  class EStateSet
    {
        constructor(arg1: int)
        {
            
            this.__value = arg1;
            return;
        }

        public value(): int
        {
            return this.__value;
        }

        public __write(arg1: SerializeStream): void
        {
            arg1.writeByte(this.__value);
            return;
        }

        public static convert(arg1: int): EStateSet
        {
            return new EStateSet(arg1);
        }

        public static __read(arg1: SerializeStream): EStateSet
        {
            var loc1=arg1.readByte();
            if (loc1 < 0 || loc1 >= 36) 
            {
                throw new MarshalException();
            }
            return EStateSet.convert(loc1);
        }

        public static /* const */_EStateSetSkill: int=0;

        public static /* const */_EStateSetFriend: int=1;

        public static /* const */_EStateSetDrug: int=2;

        public static /* const */_EStateSetPet: int=3;

        public static /* const */_EStateSetFish: int=4;

        public static /* const */_EStateSetTitle: int=5;

        public static /* const */_EStateSetVIP: int=6;

        public static /* const */_EStateSetCopyState: int=7;

        public static /* const */_EStateSetCheristmas: int=8;

        public static /* const */_EStateSetFly: int=13;

        public static /* const */_EStateSetSwitchBuffer: int=16;

        public static /* const */_EStateSetPetTitle: int=18;

        public static /* const */_EStateSetCrossCity: int=19;

        public static /* const */_EStateSetChangeModel: int=28;

        public static /* const */_EStateSetChangeModelEx: int=30;

        public static /* const */_EStateSetChaosFight: int=35;

        public /* var */__value: int;
    }
